//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================
/*
 * Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany.
 *
 * Permission to use, copy, modify, distribute, and sell this software and its
 * documentation for any purpose is hereby granted without fee, provided that
 * the above copyright notice appear in all copies and that both that
 * copyright notice and this permission notice appear in supporting
 * documentation, and that the name of Thomas Roell not be used in
 * advertising or publicity pertaining to distribution of the software without
 * specific, written prior permission.  Thomas Roell makes no representations
 * about the suitability of this software for any purpose.  It is provided
 * "as is" without express or implied warranty.
 *
 * THOMAS ROELL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
 * EVENT SHALL THOMAS ROELL BE LIABLE FOR ANY SPECIAL, INDIRECT OR
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 * PERFORMANCE OF THIS SOFTWARE.
 *
 */

#ifndef _XF86PROCS_H
#define _XF86PROCS_H

#include <Xfuncproto.h>
#include "xf86.h"
#include "xf86Priv.h"

_XFUNCPROTOBEGIN

/* xf86Config.c */
extern void xf86CheckBeta(
    int            /* extraDays */,
    char *            /* key */
);

/* xf86Config.c */


extern void xf86Config(
    int vtopen
);


extern Boolean xf86LookupMode(
    DisplayModePtr,        /* target */
    ScrnInfoPtr,        /* driver */
    int            /* flags */
);

extern void xf86VerifyOptions(
    OFlagSet *,        /* allowedOptions */
    ScrnInfoPtr        /* driver */
);

extern void xf86DeleteMode(
    ScrnInfoPtr,        /* infoptr */
    DisplayModePtr        /* dispmp */
);

extern int xf86GetToken(
    SymTabPtr        /* table */
);

extern char *xf86TokenToString(
    SymTabPtr,        /* table */
    int            /* token */
);

extern int xf86StringToToken(
    SymTabPtr,        /* table */
    char *            /* string */
);

extern void xf86ConfigError(
    char *            /* msg */
)
#if 0//#if __GNUC__
__attribute__((noreturn))
#endif
;

/* xf86Cursor.c */

extern void xf86InitViewport(
    ScrnInfoPtr        /* pScr */
);

extern void xf86SetViewport(
    ScreenPtr,        /* pScreen */
    int,            /* x */
    int            /* y */
);

extern void xf86ZoomViewport(
    ScreenPtr,        /* pScreen */
    int            /* zoom */
);
_XFUNCPROTOEND
#endif /* _XF86PROCS_H */


